package com.hfzy.ihk.web.websocket.constant;

/**
 * Created by Administrator on 2016/6/7.
 * @author wws
 *
 * 用于存储到Redis的实体类字段
 *
 */
public class RedisFields {

    /*
    * 共用字段
    * */
    public static final String ID = "id";
    /**
     * 用于乐观锁
     * */
    public static final String VERSION = "version";

    /**
     * 创建时间
     */
    public static final String CREATE_TIME = "createTime";

    /**
     * 创建人
     * */
    public static final String CREATE_USER_ID = "createUserId";

    /**
     * 创建编号
     * */
    public static final String CREATE_USER_NO = "createUserNo";

    /**
     * 修改时间
     */
    public static final String MOD_TIME = "modTime";

    /**
     * 修改人
     * */
    public static final String MOD_USER_ID = "modUserId";


    /*
    * callHistory 字段
    * */
    public static final String CALL_HISTORY_MAIN_CALL_PHONE = "mainCallPhone"; //主叫；由拨号时发送过来
    public static final String CALL_HISTORY_TARGET_CALL_PHONE = "targetCallPhone"; //被叫；由拨号时发送过来
    public static final String CALL_HISTORY_SHOW_NUM = "showNum"; //主显号码：小号、E1固话等；由拨号时发送过来
    public static final String CALL_HISTORY_IMS = "ims"; //计费号码
    public static final String CALL_HISTORY_DATA_ID = "dataId"; //置业或app数据库 数据id，用于jms推送数据时，置业或app更新数据的索引；这要求置业或app保存数据成功后再提交呼叫任务到云呼
    public static final String CALL_HISTORY_WHERE_FROM = "whereFrom"; //来源：app,置业
    public static final String CALL_HISTORY_PAGE_FROM = "pageFrom"; //app盘源,app联动call,置业盘源，置业联动call? （websocket）
    public static final String CALL_HISTORY_MACHINE_FROM = "machineFrom";//机器码：用于定位websocket对象（websocket）
    public static final String CALL_HISTORY_MAIN_CALL_TYPE = "mainCallType"; //mainCallPhone是什么号码？经纪人：1/客户：0
    public static final String CALL_HISTORY_CUSTOMER_NAME = "customerName"; //客户名称
    public static final String CALL_HISTORY_PROJECT = "project"; // 项目名称
    public static final String CALL_HISTORY_PROPERTY_NO = "propertyNo"; //盘源编号
    public static final String CALL_HISTORY_OBJECT_ID = "objectId"; //置业oracle通话记录中，盘源、客户、项目的id（联动call）
    public static final String CALL_HISTORY_COMMIT_TO = "commitTo"; //提交到哪里：东进/电信
    public static final String CALL_HISTORY_COMMIT_OK = "commitOk"; //提交呼叫任务到CTI/福建电信 成功
    public static final String CALL_HISTORY_COMMIT_TIME = "commitTime"; //提交时间
    public static final String CALL_HISTORY_TODAY = "today";  //经纪所在的城市
    public static final String CALL_HISTORY_CITY = "city";  //经纪所在的城市
    public static final String CALL_HISTORY_SESSION_ID = "sessionId"; //会话ID
    public static final String CALL_HISTORY_CALL_TYPE = "callType"; //通话类型：呼出、呼入
    public static final String CALL_HISTORY_RECORD_FILE_URL = "recordFileUrl"; //录音文件地址
    public static final String CALL_HISTORY_POINTS = "points"; //消费点数
    public static final String CALL_HISTORY_MONEY = "money"; //消费点数
    public static final String CALL_HISTORY_RECORD_FILE_URL_PART_A = "recordFileUrlPartA";    //语音分析录音文件地址
    public static final String CALL_HISTORY_VOICE_TYPE = "voiceType";          //语音分析结果
    public static final String CALL_HISTORY_VOICE_CATEGORY = "voiceCategory";  //语音分析结果分类
    public static final String CALL_HISTORY_VOICE_CONTENT = "voiceContent";    //语音内容
    public static final String CALL_HISTORY_VOICE_STATUS = "voiceStatus";      //语音状态
    public static final String CALL_HISTORY_VOICE_ENGINE = "voiceEngine";      //语音引擎
    public static final String CALL_HISTORY_VOICE_START_TIME = "voiceStartTime"; //语音请求时间
    public static final String CALL_HISTORY_VOICE_END_TIME = "voiceEndTime";    //语音返回时间
    public static final String INTERRUPT = "interrupt";    //中断状态
    public static final String INTERRUPTTIME = "interruptTime";    //中断时间
    public static final String CALL_HISTORY_RECORD_TIME_LENTH = "recordTimeLength"; //录音时长（S）
    public static final String CALL_HISTORY_MAIN_CALL_RINGING = "mainCallRinging"; //主叫响铃
    public static final String CALL_HISTORY_MAIN_CALL_RINGING_TIME = "mainCallRingingTime"; //主叫响铃时间
    public static final String RECEIVE_CALL_HISTORY_MAIN_CALL_RINGING_TIME = "receiveMainCallRingingTime"; //接收主叫响铃状态时间
    public static final String RECEIVE_CALL_HISTORY_MAIN_CALL_ANSWERED = "receiveMainCallAnswered"; //接收主叫应答状态时间
    public static final String CALL_HISTORY_MAIN_CALL_ANSWERED = "mainCallAnswered"; //主叫应答
    public static final String CALL_HISTORY_MAIN_CALL_ANSWERED_TIME = "mainCallAnsweredTime"; //主叫应答
    public static final String RECEIVE_HISTORY_MAIN_CALL_ANSWERED_TIME = "receivemainCallAnsweredTime"; //接受主叫应答状态时间
    public static final String CALL_HISTORY_MAIN_CALL_FAILED = "mainCallFailed"; //呼叫主叫失败：如果没有响铃，表示主叫空号；如有响铃，表示未接听或把来电号码加入黑名单或手机飞行模式（电信）
    public static final String CALL_HISTORY_MAIN_CALL_FAILED_TIME = "mainCallFailedTime"; //呼叫主叫失败时间
    public static final String RECEIVE_CALL_HISTORY_MAIN_CALL_FAILED_TIME = "receiveMainCallFailedTime"; //接收呼叫主叫呼叫主叫失败状态时间
    public static final String CALL_HISTORY_TARGET_CALL_RINGING = "targetCallRinging"; //被叫响铃
    public static final String RECEIVE_CALL_HISTORY_TARGET_CALL_RINGING_TIME = "receiveTargetCallRingingTime"; //接收被叫响铃状态时间
    public static final String CALL_HISTORY_TARGET_CALL_RINGING_TIME = "targetCallRingingTime"; //被叫响铃时间
    public static final String CALL_HISTORY_TARGET_CALL_ANSWERED = "targetCallAnswered"; //被叫应答
    public static final String CALL_HISTORY_TARGET_CALL_ANSWERED_TIME = "targetCallAnsweredTime"; //被叫应答
    public static final String RECEIVE_CALL_HISTORY_TARGET_CALL_ANSWERED_TIME = "receiveTargetCallAnsweredTime"; //接受被叫应答状态时间
    public static final String CALL_HISTORY_TARGET_CALL_FAILED = "targetCallFailed"; //呼叫被叫失败：如果没有响铃，表示被叫空号；如有响铃，表示未接听或把来电号码加入黑名单或手机飞行模式；（电信）
    public static final String RECEIVE_CALL_HISTORY_TARGET_CALL_FAILED_TIME = "receiveTargetCallFailedTime"; //接收呼叫被叫失败状态时间
    public static final String CALL_HISTORY_TARGET_CALL_FAILED_TIME = "targetCallFailedTime"; //呼叫被叫失败时间
    public static final String CALL_HISTORY_DISCONNECT_TIME = "disconnectTime"; //通话结束时间:有此时间表明是正常通话，记录第一次返回disconnect状态的时间
    public static final String RECEIVE_CALL_HISTORY_DISCONNECT_TIME = "receiveDisconnectTime"; //接收通话结束状态时间
    public static final String RECEIVE_CALL_HISTORY_APP_START_TIME = "receiveAppStartTime"; //接收app开始呼叫时间
    public static final String RECEIVE_CALL_HISTORY_APP_STOP_TIME = "receiveAppStopTime"; //接收app呼叫结束时间
    public static final String RECEIVE_CALL_HISTORY_APP_RECORD_FILE_TIME = "receiveApprecordFileTime"; //接收app呼叫结束时间
    public static final String CALL_HISTORY_MESSAGE_ID = "messageId"; //jms msg Id/taobao 消息id
    public static final String CALL_HISTORY_REMARK = "remark"; //备注，目前用来记录真实的电信返回的失败原因：vReason
    public static final String CALL_HISTORY_FAILED_REASON = "failedReason"; //记录分析后的失败原因

    public static final String CALL_HISTORY_COMPANY = "company";
    public static final String CALL_HISTORY_CALL_TASK_ID = "callTaskId";
    public static final String CALL_HISTORY_CALL_PACKAGE_ID = "packageId";
    public static final String CALL_HISTORY_CALL_PACKAGE_NAME = "packageName";

    public static final String CALL_HISTORY_CALL_ACTION_CODE_BREAK = "actionCodeBreak";

    public static final String CALL_HISTORY_CALL_VOICE_CODE= "voiceCode";
    public static final String CALL_HISTORY_CALL_VOICE_TEXT= "voiceText";
    public static final String APP_HAS_RECORD_FILE = "hasRecordFile";

    public static final String MAIN_CALL_START_TIME = "mainCallStartTime";

    public static final String MAIN_CALL_END_TIME = "mainCallEndTime";

    public static final String MAIN_CALL_LENGTH = "mainCallLength";

    public static final String TARGET_CALL_START_TIME = "targetCallStartTime";

    public static final String TARGET_CALL_END_TIME = "targetCallEndTime";

    public static final String TARGET_CALL_LENGTH = "targetCallLength";

    public static final String APP_COUNT_TIME = "countTime"; //app 通话时长，callHistory中使用recodeTimeLength来保存（app_start - > app_stop）
    /*INVITE 不存入db*/
    public static final String CALL_HISTORY_MAIN_CALL_INVITE = "mainCallInvite"; //主叫寻址
    public static final String CALL_HISTORY_TARGET_CALL_INVITE = "targetCallInvite"; //被叫寻址

    /*共用字段，是否push到了入库队列*/
    public static final String PUBLIC_PUSH_INSERT_QUEUE = "pushBatchInsertQueue";
    /*共用字段，是否已经存在语音分析任务*/
    public static final String PUBLIC_IS_EXISTS_VOICE_TASK = "publicIsExistsVoiceTask";
    /*共用字段,是否被中断通话。*/
    public static final String PUBLIC_INTERRUPT_FLAG = "interruptFlag";
    /*共用字段,第二账单标识。*/
    public static final String PUBLIC_SECOND_BILL_FLAG = "secondBillFlag";
    /*共用字段,拨打电信小号呼入，不需推送到客户端*/
    public static final String PUBLIC_CALL_IN_FLAG = "telecomCallIn";

    //分行服务器MAC地址
    public static final String BRANCH_MAC = "mac";

    public static final String IS_TEST = "isTest";

    public static final String CONTENT = "content";

    public static final String CALL_HISTORY_P_ID = "pId";   //东进线路CTI进程ID，不入库

    public static final String SOURCE = "source";
}
